import axios from '@/util'; 

import type {
  moShiPeiZhiResultDto,
} from './typings';



/**
 * 获取模式配置列表 GET /api/moShiPeiZhiController
 */
export async function get_api_moshipeizhicontroller (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
  },
  options?: Record<string, any>,
): Promise<moShiPeiZhiResultDto> {
  return axios({
    method: 'GET',
    url: `/api/moShiPeiZhiController`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 创建模式配置 POST /api/moShiPeiZhiController
 */
export async function post_api_moshipeizhicontroller (
  data: {
    /**  */
    label?: string;
    /**  */
    tuPianUrl?: string;
    /**  */
    sheBeiCanShu?: string__;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/moShiPeiZhiController`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 修改模式配置 PUT /api/moShiPeiZhiController/{id}
 */
export async function put_api_moshipeizhicontroller__id_ (
  pathVars: {
    /**  */
    id: any;
  },
  data: {
    /**  */
    label?: string;
    /**  */
    tuPianUrl?: string;
    /**  */
    sheBeiCanShu?: string__;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'PUT',
    url: `/api/moShiPeiZhiController/${pathVars.id}`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 删除模式配置 DELETE /api/moShiPeiZhiController/{id}
 */
export async function delete_api_moshipeizhicontroller__id_ (
  pathVars: {
    /**  */
    id: any;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'DELETE',
    url: `/api/moShiPeiZhiController/${pathVars.id}`,
    ...(options || {}),
  })
}

/**
 * 流式响应接口 POST /api/moShiPeiZhiController/stream
 */
export async function post_api_moshipeizhicontroller_stream (
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/moShiPeiZhiController/stream`,
    ...(options || {}),
  })
}
